package com.jgraves.WikiToSpeech;

/** A file with name and size
 * @author johngraves
 *
 */
public class FileChooserOption implements Comparable<FileChooserOption>{
	
	private String name;
	private Long size;

	public FileChooserOption(String n, Long s)
	{
		name = n;
		size = s;
	}
	
	public String getName()
	{
		return name;
	}
	
	public Long getSize()
	{
		return size;
	}
	
	public int compareTo(FileChooserOption o) {
		if(this.name != null)
//			return this.size.compareTo(o.getSize()); 
			return this.name.toLowerCase().compareTo(o.getName().toLowerCase()); 
		else 
			throw new IllegalArgumentException();
	}
}

